dojo.declare("DCustomerAccountPg", wm.Page, {
start: function() {
this.projectLookup1.setReadonly(true);
this.emailEditor.setReadonly(true);
},
"preferredDevice": "desktop",
_end: 0
});

DCustomerAccountPg.widgets = {
lvCustomer: ["wm.LiveVariable", {"inFlightBehavior":"executeLast","type":"com.servicelivedb.data.Customer"}, {}, {
liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.Customer","related":["block","project","door"],"view":[
{"caption":"Pto","sortable":true,"dataIndex":"pto","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":13,"subType":null},
{"caption":"PtoMessage","sortable":true,"dataIndex":"ptoMessage","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":14,"subType":null},
{"caption":"Vendor_msg","sortable":true,"dataIndex":"vendor_msg","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":15,"subType":null},
{"caption":"Min_order_amount","sortable":true,"dataIndex":"min_order_amount","type":"java.lang.Integer","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":16,"subType":null},
{"caption":"Shop_time","sortable":true,"dataIndex":"shop_time","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":17,"subType":null},
{"caption":"CustomerId","sortable":true,"dataIndex":"customerId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":14000,"subType":null,"widthUnits":"px"},
{"caption":"Address","sortable":true,"dataIndex":"address","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":14001,"subType":null,"widthUnits":"px"},
{"caption":"Email","sortable":true,"dataIndex":"email","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":14002,"subType":null,"widthUnits":"px"},
{"caption":"UpdatedDt","sortable":true,"dataIndex":"updatedDt","type":"java.util.Date","displayType":"Date","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":14003,"subType":null,"widthUnits":"px"},
{"caption":"UpdatedBy","sortable":true,"dataIndex":"updatedBy","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":14004,"subType":null,"widthUnits":"px"},
{"caption":"Active","sortable":true,"dataIndex":"active","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":14005,"subType":null,"widthUnits":"px"},
{"caption":"Password","sortable":true,"dataIndex":"password","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":14006,"subType":null,"widthUnits":"px"},
{"caption":"Username","sortable":true,"dataIndex":"username","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":14007,"subType":null,"widthUnits":"px"},
{"caption":"Name","sortable":true,"dataIndex":"name","type":"java.lang.String","displayType":"Text","required":true,"readonly":false,"includeLists":true,"includeForms":true,"order":14008,"subType":null,"widthUnits":"px"},
{"caption":"PrimaryPhone","sortable":true,"dataIndex":"primaryPhone","type":"java.lang.String","displayType":"Text","required":true,"readonly":false,"includeLists":true,"includeForms":true,"order":14009,"subType":null,"widthUnits":"px"},
{"caption":"SecondaryPhone","sortable":true,"dataIndex":"secondaryPhone","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":14010,"subType":null,"widthUnits":"px"},
{"caption":"Type","sortable":true,"dataIndex":"type","type":"java.lang.String","displayType":"Text","required":true,"readonly":false,"includeLists":true,"includeForms":true,"order":14011,"subType":null,"widthUnits":"px"},
{"caption":"AlternateContact","sortable":true,"dataIndex":"alternateContact","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":14012,"subType":null,"widthUnits":"px"},
{"caption":"BlockId","sortable":true,"dataIndex":"block.blockId","type":"java.lang.Integer","displayType":"Number","required":true,"widthUnits":"px","includeLists":true,"includeForms":true,"order":15000},
{"caption":"BlockName","sortable":true,"dataIndex":"block.blockName","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":15001},
{"caption":"ProjectId","sortable":true,"dataIndex":"project.projectId","type":"java.lang.Integer","displayType":"Number","required":true,"widthUnits":"px","includeLists":true,"includeForms":true,"order":16000},
{"caption":"ProjectName","sortable":true,"dataIndex":"project.projectName","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":16001},
{"caption":"Address","sortable":true,"dataIndex":"project.address","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":16002},
{"caption":"Active","sortable":true,"dataIndex":"project.active","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":16003},
{"caption":"PrimaryPhone","sortable":true,"dataIndex":"project.primaryPhone","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":16004},
{"caption":"SecondaryPhone","sortable":true,"dataIndex":"project.secondaryPhone","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":16005},
{"caption":"Email","sortable":true,"dataIndex":"project.email","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":16006},
{"caption":"Website","sortable":true,"dataIndex":"project.website","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":16007},
{"caption":"Description","sortable":true,"dataIndex":"project.description","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":16008},
{"caption":"Image","sortable":true,"dataIndex":"project.image","type":"byte","displayType":"Number","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":16009},
{"caption":"DoorId","sortable":true,"dataIndex":"door.doorId","type":"java.lang.Integer","displayType":"Number","required":true,"widthUnits":"px","includeLists":true,"includeForms":true,"order":17000},
{"caption":"DoorName","sortable":true,"dataIndex":"door.doorName","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":17001}
]}, {}],
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"[main].lvLoggedCustomer.customerId","targetProperty":"filter.customerId"}, {}]
}]
}],
svAccountUpdate: ["wm.ServiceVariable", {"inFlightBehavior":"executeLast","operation":"accDetailsUpdate","service":"serviceliveDB"}, {"onError":"notificationError","onSuccess":"notificationCall1"}, {
input: ["wm.ServiceInput", {"type":"accDetailsUpdateInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"nameEditor2.dataValue","targetProperty":"name"}, {}],
wire1: ["wm.Wire", {"expression":undefined,"source":"passwordEditor2.dataValue","targetProperty":"password"}, {}],
wire2: ["wm.Wire", {"expression":undefined,"source":"lvCustomer.customerId","targetProperty":"customerId"}, {}],
wire3: ["wm.Wire", {"expression":undefined,"source":"doorLookup1.selectedItem.doorId","targetProperty":"doorId"}, {}],
wire4: ["wm.Wire", {"expression":undefined,"source":"blockLookup1.selectedItem.blockId","targetProperty":"blockId"}, {}],
wire5: ["wm.Wire", {"expression":undefined,"source":"primaryPhoneEditor2.dataValue","targetProperty":"primaryPhone"}, {}],
wire6: ["wm.Wire", {"expression":undefined,"source":"secondaryPhoneEditor2.dataValue","targetProperty":"secondaryPhone"}, {}]
}]
}]
}],
notificationCall1: ["wm.NotificationCall", {"operation":"toast"}, {}, {
input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":"\"Sucessfully Updated!!\"","targetProperty":"text"}, {}],
wire1: ["wm.Wire", {"expression":"4000","targetProperty":"duration"}, {}],
wire2: ["wm.Wire", {"expression":"\"Success\"","targetProperty":"cssClasses"}, {}],
wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}]
}]
}]
}],
notificationError: ["wm.NotificationCall", {"operation":"toast"}, {}, {
input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":"\"Error occurred while saving\"","targetProperty":"text"}, {}],
wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}],
wire2: ["wm.Wire", {"expression":"\"Error\"","targetProperty":"cssClasses"}, {}],
wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}]
}]
}]
}],
svSendMail: ["wm.ServiceVariable", {"inFlightBehavior":"executeLast","operation":"sendEmail","service":"MailSenderService"}, {}, {
input: ["wm.ServiceInput", {"type":"sendEmailInputs"}, {}]
}],
lvBlock: ["wm.LiveVariable", {"inFlightBehavior":"executeLast","type":"com.servicelivedb.data.Block"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"[main].lvLoggedCustomer.project.projectName","targetProperty":"filter.project.projectName"}, {}]
}],
liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.Block","view":[
{"caption":"BlockId","sortable":true,"dataIndex":"blockId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":4000,"subType":null,"widthUnits":"px"},
{"caption":"BlockName","sortable":true,"dataIndex":"blockName","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":4001,"subType":null,"widthUnits":"px"}
]}, {}]
}],
lvDoor: ["wm.LiveVariable", {"inFlightBehavior":"executeLast","type":"com.servicelivedb.data.Door"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"blockLookup1.selectedItem","targetProperty":"filter.block"}, {}]
}],
liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.Door","view":[
{"caption":"DoorId","sortable":true,"dataIndex":"doorId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},
{"caption":"DoorName","sortable":true,"dataIndex":"doorName","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null}
]}, {}]
}],
layoutBox1: ["wm.Layout", {"horizontalAlign":"left","verticalAlign":"top"}, {}, {
panel1: ["wm.Panel", {"height":"100%","horizontalAlign":"center","layoutKind":"left-to-right","styles":{},"verticalAlign":"top","width":"100%"}, {}, {
liveForm1: ["wm.LiveForm", {"border":"4","borderColor":"#eb5b5b","captionSize":"160px","editorHeight":"35px","fitToContentHeight":true,"height":"373px","horizontalAlign":"center","margin":"10","padding":"10","styles":{"borderRadius":"8px"},"verticalAlign":"top","width":"50%"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"lvCustomer","targetProperty":"dataSet"}, {}]
}],
projectLookup1: ["wm.Lookup", {"border":"0","caption":"Project","captionSize":"160px","dataType":"com.servicelivedb.data.Project","desktopHeight":"26px","displayField":"projectName","formField":"project","height":"35px","width":"100%"}, {}],
emailEditor: ["wm.Text", {"border":"0","caption":"Email","captionSize":"160px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"emptyString","formField":"email","height":"35px","width":"100%"}, {}],
passwordEditor2: ["wm.Text", {"border":"0","caption":"Password","captionSize":"160px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"emptyString","formField":"password","height":"35px","password":true,"styles":{},"width":"100%"}, {}],
nameEditor2: ["wm.Text", {"border":"0","caption":"Name","captionSize":"160px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"emptyString","formField":"name","height":"35px","required":true,"width":"100%"}, {}],
primaryPhoneEditor2: ["wm.Text", {"border":"0","caption":"PrimaryPhone","captionSize":"160px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"emptyString","formField":"primaryPhone","height":"35px","maxChars":10,"required":true,"width":"100%"}, {}],
secondaryPhoneEditor2: ["wm.Text", {"border":"0","caption":"SecondaryPhone","captionSize":"160px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"emptyString","formField":"secondaryPhone","height":"35px","width":"100%"}, {}],
blockLookup1: ["wm.Lookup", {"border":"0","caption":"Block","captionSize":"160px","dataType":"com.servicelivedb.data.Block","displayField":"blockName","formField":"block","height":"35px","width":"100%"}, {}, {
binding: ["wm.Binding", {}, {}, {
dataFieldWire: ["wm.Wire", {"source":"blockLookup1.liveVariable","targetProperty":"dataSet"}, {}],
wire: ["wm.Wire", {"expression":undefined,"source":"lvBlock","targetProperty":"dataSet"}, {}]
}]
}],
doorLookup1: ["wm.Lookup", {"border":"0","caption":"Door","captionSize":"160px","dataType":"com.servicelivedb.data.Door","displayField":"doorName","formField":"door","height":"35px","width":"100%"}, {}, {
binding: ["wm.Binding", {}, {}, {
dataFieldWire: ["wm.Wire", {"source":"doorLookup1.liveVariable","targetProperty":"dataSet"}, {}],
wire: ["wm.Wire", {"expression":undefined,"source":"lvDoor","targetProperty":"dataSet"}, {}],
wire1: ["wm.Wire", {"expression":undefined,"source":"lvCustomer.door.doorName","targetProperty":"dataValue"}, {}]
}]
}],
liveForm1EditPanel: ["wm.EditPanel", {"desktopHeight":"45px","height":"45px","isCustomized":true,"liveForm":"liveForm1","lock":false,"operationPanel":"operationPanel1","savePanel":"savePanel1","styles":{}}, {}, {
savePanel1: ["wm.Panel", {"height":"100%","horizontalAlign":"right","layoutKind":"left-to-right","verticalAlign":"top","width":"368px"}, {}, {
saveButton1: ["wm.Button", {"border":"1","caption":"Update My Account","height":"100%","imageIndex":54,"imageList":"app.silkIconList","margin":"4","styles":{},"width":"100%"}, {"onclick":"svAccountUpdate","onclick1":"svSendMail"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"liveForm1EditPanel.formInvalid","targetProperty":"disabled"}, {}]
}]
}]
}]
}]
}]
}]
}]
};

DCustomerAccountPg.prototype._cssText = '';
DCustomerAccountPg.prototype._htmlText = '';